import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('@/components/index')
  },
  //叠蛋糕
  {
    path: '/foldCake',
    name: 'foldCake',
    component: () => import('@/views/foldCake/index')
  },
  //消消乐
  {
    path: '/Xiaoxiaole',
    name: 'Xiaoxiaole',
    component: () => import('@/views/Xiaoxiaole/index')
  },
  //接金币
  {
    path: '/pickCoin',
    name: 'pickCoin',
    component: () => import('@/views/pickCoin/index')
  },
  //九宫格抽奖
  {
    path: '/focusDraw',
    name: 'focusDraw',
    component: () => import('@/views/focusDraw/index')
  },
  //大转盘抽奖
  {
    path: '/Lottery',
    name: 'Lottery',
    component: () => import('@/views/Lottery/index')
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
